-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: error docker inspect logs during chalk exec #248
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The codec is used in 2 modes - dealing with artifacts and docker sub command.
For docker sub command docker inspect error I think should be higher level like it is now however for the general codec handling yeah it should be hidden. In our infra even with this trace level it will still show up as error log since the "error:" comes from the sub command call. We can fix it better I think to completely avoid any error logs during docker exec entrypoint.
@miki725 you want me to make changes in the current PR or close it and it will be addressed once the exec errors are handled properly? |
Let's leave open for now and we can push improvements to this branch |
pushed some changes. note that found a bug in nimutils so full output will be replicated once thats bumped here crashappsec/nimutils#65
|
looks like disabling the plugin that way breaks everything. will have to debug whats going on and how to fix all the tests |
otherwise the codec would attempt to use docker commands to interact with the artifacts which would result in an error which would show misleading error logs now if docker is missing, codec is disabled in addition to optimize the docker wrapping, when docker is missing it immediately goes to fallback mode which then bubbles up appropriate error to the user
485462a
to
2982e28
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests are failing with:
Error: unhandled exception: key not found: docker [KeyError] [inspect]
Otherwise looks good, though I'd suggest we:
- Clarify the changelog, similar to that suggested.
- Avoid
Nit:
for the merged commit title. If we consider this a user-facing improvement to misleading behavior, our convention requires the prefix to befix:
.
(Edit: meant to "comment", not "approve").
There are places where plugins are loaded explicitly by name and so conditionally registering codecs leads to KeyErrors. By adding enabled flag we can gracefully ignore some callbacks from plugin definitions without breaking anything relying on plugin existence.
2982e28
to
c029f43
Compare
COPY --from=gcr.io/projectsigstore/cosign /ko-app/cosign /usr/local/bin/cosign | ||
COPY --from=gcr.io/projectsigstore/cosign:v2.2.3 /ko-app/cosign /usr/local/bin/cosign |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For visibility: this change is unrelated to this PR, and is because #254 was incomplete.
I will create an issue for this. The checks passed successfully on #254 and the corresponding commit on main
(f47aa02) only because the tests workflow was skipped, but it isn't skipped on this PR.
Edit: created #255.
Co-authored-by: ee7 <[email protected]>
CHANGELOG.md
if necessaryIssue
Fixes #247
Description
docker
is not installed which removes the misleading error log onchalk exec
docker
command for better stderr whendocker
is not installed duringchalk docker ...